package ssm.mapper;

import org.apache.ibatis.annotations.Param;
import ssm.myPojo.PerCustom;
import ssm.myPojo.SourQueryVo;
import ssm.pojo.Per;
import ssm.pojo.PerExample;

import java.util.List;

public interface PerMapper {
    long countByExample(PerExample example);

    int deleteByExample(PerExample example);

    int deleteByPrimaryKey(Integer perId);

    int insert(PerCustom perCustom);

    int insertSelective(Per record);

    List<Per> selectByExample(PerExample example);

    Per selectByPrimaryKey(Integer perId);

    List<PerCustom> selectPerByName(String name);

    int updateByExampleSelective(@Param("record") Per record, @Param("example") PerExample example);

    int updateByExample(@Param("record") Per record, @Param("example") PerExample example);

    int updateByPrimaryKeySelective(Per record);

    int updateByPrimaryKey(Per record);
}